import Vue from 'vue'
import Vuex, { Commit, Dispatch, StoreOptions }  from 'vuex'
import getters from './getters'
import actions from './actions'
//import patient, { State as PatientState } from './modules/patient'
import patient,{State as PatientState} from './modules/patient'
import room,{State as RoomState} from './modules/room'
import login,{State as LoginState} from './modules/login'

Vue.use(Vuex)
// import { State as PatientState } from './modules/patient'

export default new Vuex.Store({
    actions,
    getters,
    modules: {
        patient,
        room,
        login
    },
})

export interface State {
    patient: PatientState,
    room: RoomState,
    login:LoginState
}

